package com.bos.service.imp;

import com.bos.dao.IFuntionDao;
import com.bos.domain.Function;
import com.bos.service.IFuntionService;
import com.bos.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Administrator
 */
@Service
@Transactional
public class IFuntionServiceImp implements IFuntionService {

    @Autowired
    private IFuntionDao  funtionDao;

    @Override
    public List<Function> findAll() {
        return funtionDao.findAll();
    }

    @Override
    public void save(Function function) {
        funtionDao.save(function);
    }

    @Override
    public void pageQuery(PageBean pageBean) {
        funtionDao.pageQuery(pageBean);
    }

    @Override
    public List<Function> findAllMenu() {
        return funtionDao.findAllMenu();
    }

    @Override
    public List<Function> findMenuByUserId(String id) {
        return funtionDao.findMenuByUserId(id);
    }
}
